package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店配品分类管理对象 store_accessories_category
 *
 * @author ruoyi
 * @date 2025-05-27
 */
public class StoreAccessoriesCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID，主键，自增唯一标识 */
    private Long id;

    /** 上级分类ID，关联自身表的id字段，允许为空（表示一级分类） */
    @Excel(name = "上级分类ID，关联自身表的id字段，允许为空", readConverterExp = "表=示一级分类")
    private Long parentCategoryId;

    /** 分类名称，例如“餐具”“纸巾”等，不允许为空 */
    @Excel(name = "分类名称，例如“餐具”“纸巾”等，不允许为空")
    private String categoryName;

    /** 分类编码，业务唯一标识码（如系统编码），不允许为空且唯一 */
    @Excel(name = "分类编码，业务唯一标识码", readConverterExp = "如=系统编码")
    private String categoryCode;

    /** 配品数，记录该分类下的配品数量，默认为0，由应用层动态更新 */
    @Excel(name = "配品数，记录该分类下的配品数量，默认为0，由应用层动态更新")
    private Long accessoryCount;

    /** 排序顺序，用于控制分类在列表中的显示顺序，数值越小越靠前 */
    @Excel(name = "排序顺序，用于控制分类在列表中的显示顺序，数值越小越靠前")
    private Long sortOrder;

    /** 显示顺序，与sort_order功能类似，可冗余字段或用于不同场景 */
    @Excel(name = "显示顺序，与sort_order功能类似，可冗余字段或用于不同场景")
    private Long displaySequence;

    /** 点单时改价，0=未设置（默认禁止），1=允许，2=不允许 */
    @Excel(name = "点单时改价，0=未设置", readConverterExp = "默=认禁止")
    private Integer allowPriceEditDuringOrder;

    /** 整单折扣，0=未设置（默认禁止），1=允许，2=不允许 */
    @Excel(name = "整单折扣，0=未设置", readConverterExp = "默=认禁止")
    private Integer allowWholeOrderDiscount;

    /** 折扣方式，unset=未设置，no_discount=无折扣，member_level_discount=会员等级折扣，custom_member_discount=另设会员等级折扣，custom_member_price=另设会员等级价格 */
    @Excel(name = "折扣方式，unset=未设置，no_discount=无折扣，member_level_discount=会员等级折扣，custom_member_discount=另设会员等级折扣，custom_member_price=另设会员等级价格")
    private String discountType;

    /** 属于配赠配品分类，0=未设置（默认不属于），1=属于配赠，2=不属于配赠 */
    @Excel(name = "属于配赠配品分类，0=未设置", readConverterExp = "默=认不属于")
    private Integer isGiftCategory;

    /** 支持自助点单，0=未设置（默认不支持），1=支持，2=不支持 */
    @Excel(name = "支持自助点单，0=未设置", readConverterExp = "默=认不支持")
    private Integer supportSelfOrder;

    /** 参与最低消费，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与最低消费，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInMinConsumption;

    /** 参与会员积分，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与会员积分，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInMemberPoints;

    /** 参与积分兑换，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与积分兑换，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInPointsExchange;

    /** 参与积分抵现，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与积分抵现，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInPointsDeduction;

    /** 参与手动优惠，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与手动优惠，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInManualDiscount;

    /** 打印设置，存储JSON格式的配置，例如打印机名称、打印份数、打印模板等，允许为空 */
    @Excel(name = "打印设置，存储JSON格式的配置，例如打印机名称、打印份数、打印模板等，允许为空")
    private String printSettings;

    /** 记录创建时间，默认为当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间，默认为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间，默认为当前时间，更新时自动刷新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间，默认为当前时间，更新时自动刷新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setParentCategoryId(Long parentCategoryId)
    {
        this.parentCategoryId = parentCategoryId;
    }

    public Long getParentCategoryId()
    {
        return parentCategoryId;
    }

    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }

    public void setCategoryCode(String categoryCode)
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode()
    {
        return categoryCode;
    }

    public void setAccessoryCount(Long accessoryCount)
    {
        this.accessoryCount = accessoryCount;
    }

    public Long getAccessoryCount()
    {
        return accessoryCount;
    }

    public void setSortOrder(Long sortOrder)
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder()
    {
        return sortOrder;
    }

    public void setDisplaySequence(Long displaySequence)
    {
        this.displaySequence = displaySequence;
    }

    public Long getDisplaySequence()
    {
        return displaySequence;
    }

    public void setAllowPriceEditDuringOrder(Integer allowPriceEditDuringOrder)
    {
        this.allowPriceEditDuringOrder = allowPriceEditDuringOrder;
    }

    public Integer getAllowPriceEditDuringOrder()
    {
        return allowPriceEditDuringOrder;
    }

    public void setAllowWholeOrderDiscount(Integer allowWholeOrderDiscount)
    {
        this.allowWholeOrderDiscount = allowWholeOrderDiscount;
    }

    public Integer getAllowWholeOrderDiscount()
    {
        return allowWholeOrderDiscount;
    }

    public void setDiscountType(String discountType)
    {
        this.discountType = discountType;
    }

    public String getDiscountType()
    {
        return discountType;
    }

    public void setIsGiftCategory(Integer isGiftCategory)
    {
        this.isGiftCategory = isGiftCategory;
    }

    public Integer getIsGiftCategory()
    {
        return isGiftCategory;
    }

    public void setSupportSelfOrder(Integer supportSelfOrder)
    {
        this.supportSelfOrder = supportSelfOrder;
    }

    public Integer getSupportSelfOrder()
    {
        return supportSelfOrder;
    }

    public void setParticipateInMinConsumption(Integer participateInMinConsumption)
    {
        this.participateInMinConsumption = participateInMinConsumption;
    }

    public Integer getParticipateInMinConsumption()
    {
        return participateInMinConsumption;
    }

    public void setParticipateInMemberPoints(Integer participateInMemberPoints)
    {
        this.participateInMemberPoints = participateInMemberPoints;
    }

    public Integer getParticipateInMemberPoints()
    {
        return participateInMemberPoints;
    }

    public void setParticipateInPointsExchange(Integer participateInPointsExchange)
    {
        this.participateInPointsExchange = participateInPointsExchange;
    }

    public Integer getParticipateInPointsExchange()
    {
        return participateInPointsExchange;
    }

    public void setParticipateInPointsDeduction(Integer participateInPointsDeduction)
    {
        this.participateInPointsDeduction = participateInPointsDeduction;
    }

    public Integer getParticipateInPointsDeduction()
    {
        return participateInPointsDeduction;
    }

    public void setParticipateInManualDiscount(Integer participateInManualDiscount)
    {
        this.participateInManualDiscount = participateInManualDiscount;
    }

    public Integer getParticipateInManualDiscount()
    {
        return participateInManualDiscount;
    }

    public void setPrintSettings(String printSettings)
    {
        this.printSettings = printSettings;
    }

    public String getPrintSettings()
    {
        return printSettings;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("parentCategoryId", getParentCategoryId())
                .append("categoryName", getCategoryName())
                .append("categoryCode", getCategoryCode())
                .append("accessoryCount", getAccessoryCount())
                .append("sortOrder", getSortOrder())
                .append("displaySequence", getDisplaySequence())
                .append("allowPriceEditDuringOrder", getAllowPriceEditDuringOrder())
                .append("allowWholeOrderDiscount", getAllowWholeOrderDiscount())
                .append("discountType", getDiscountType())
                .append("isGiftCategory", getIsGiftCategory())
                .append("supportSelfOrder", getSupportSelfOrder())
                .append("participateInMinConsumption", getParticipateInMinConsumption())
                .append("participateInMemberPoints", getParticipateInMemberPoints())
                .append("participateInPointsExchange", getParticipateInPointsExchange())
                .append("participateInPointsDeduction", getParticipateInPointsDeduction())
                .append("participateInManualDiscount", getParticipateInManualDiscount())
                .append("printSettings", getPrintSettings())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("phone", getPhone())
                .toString();
    }
}
